﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Practices.Composite.Regions;


using EQual.Infrastructure;

namespace EQual.MainModule
{
   public abstract class ModulesControllerBase<Tview, Ttype> : EQual.Infrastructure.MVPFramework.Presenters.ControllerBase<Tview, Ttype>, EQual.Infrastructure.IModuleController 
    {
        DataAccesLayer.EQualDataLayerFactory accesLayer;
        EQual.MainModule.DetailsContainer containerView ;

        public DataAccesLayer.EQualDataLayerFactory AccesLayer
        {
            get { return accesLayer; }
            set { accesLayer = value; }
        }

        public object GetDecoratedView(object view, string header)
        {
            return new DataGridDecorator(view, header);
        }

        public object GetDecoratedView(object view)
        {
            return new DataGridDecorator(view,"");
        }

        #region IModuleController Members

        public abstract void Run();


        #endregion
    }
}
